/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-06-01 10:00:03
 * @LastEditTime : 2023-07-19 15:06:15
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Router\MenuNav\ThrRouter\FormConsigneeRecord.jsx
 * @Description  :
 */
import { API_LIST } from '../../../Api/Api'

export const FormConsigneeRecord = async ({ twoData, ClientData }) => {
    let dataList = {
        uuid: twoData.uuid,
        isCheckbox: true,
        width: 1000,
        pageSize: 10,
        params: { pageIndex: 1 },
        get: API_LIST()['getUserGroupDetail'],
        pos: 'posFormConsigneeRecord',
        assemblyData: e => {
            return e.map((item, index) => ({
                formUuid: twoData.uuid,
                updateUserUuid: item.userUuid,
                updateUserName: item.tableName,
                sortId: index,
                status: 0,
            }))
        },
        columns: [
            {
                title: '人员id',
                dataIndex: 'userUuid',
                search: false,
                type: 'hidden',
                hideInTable: true,
            },
            {
                title: '组织机构',
                dataIndex: 'organizationName',
                search: false,
            },
            {
                title: '账户',
                dataIndex: 'tableName',
                search: false,
            },
            {
                title: '姓名',
                dataIndex: 'fullName',
            },
            {
                title: '身份证',
                dataIndex: 'idCard',
            },
        ],
    }

    return dataList
}
